﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NhomThucPhamDetails.aspx.cs" Inherits="QuanLyDinhDuong_NhomThucPhamDetails" %>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Nhom thuc pham</title>
<link rel="stylesheet" href="../css/popup-ducva.css"/>
<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/popup.js"></script>
</head>

<body>
    <form id="form1" runat="server" method="post">
	<section class="wrapper-pop-up-width-500">
    	<header>
        	<h1 class="heading-pop-up-width-500"><asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></h1>
            <ul class="top-icon-pop-up-width-500">
            	<li><a class="dropdown" data-dimension="500|185" href="#"></a></li>
                <li><a class="maximum" data-dimension="100%|100%" href="#"></a></li>
                <li><a class="minimum" data-dimension="500|185" href="#"></a></li>  
                <li><a class="turn-off" data-dimension="500|185" href="#"></a></li>
            </ul>
        </header>
        <section class="main">
        <!--END .clear-->
        <section class="content-pop-up-width-500">
            	<table class="table-pop-up-width-500">
                	<tr>
                    	<td width="14%">
                        	Tên nhóm (*):
                        </td>
                        <td width="23%">
                        	<input class="box-nhap-pop-up-width-500" type="text" name="box-nhap-ten-nhom-thuc-pham" id="txtTenNhomThucPham" placeholder="Nhập tên nhóm  thực phẩm" runat="server" />
                        </td>
            </tr>
                </table>
                <section class="clear">
                </section><!--End .clear-->
            <section class="bottom-content">
            	<!--<section class="bottom-left-content">
					<input class="button-pop-up" type="submit" value="Trợ giúp"/>               
                </section><!--END .bottom-left-content-->-->
                <section class="bottom-right-content">
            	<input class="button-pop-up" type="submit" value="Cập nhật" id="btnUpdate" runat="server" OnServerClick="btnUpdate_Click"/>   
                <input class="button-pop-up" type="submit" value="Hủy bỏ" onclick="Thoat()"/>             
                </section><!--END .bottom-right-content-->
				<section class="clear"></section>
            </section><!--End .bottom-content-->
        </section><!--End .content-->
    </section><!--END.wrapper-->
    </form>
</body>
</html>

<script type="text/javascript">
    function Thoat() {
        window.parent.closeColorBox();
    }

    $('#btnUpdate').click(function () {
        validateInPut();
    });

    function validateInPut() {
        if ($('#txtTenNhomThucPham').attr("value") == "") {
            alert("Chưa nhập tên nhóm thực phẩm!");
            return false;
        }
        return true;
    }
</script>